var app = getApp();

Page({
  data: {
    userInfo: {},
    mode: ['信息反馈', '联系客服', '关于我们']
  },
  onLoad: function () {
  },
  getOut(){
    wx.showModal({
      cancelColor: '#ff0000',
      cancelText: '取消',
  
      confirmText: '确定',
      content: '您确定要退出吗？',
      showCancel: true,
      success: (res) => {
        if(res.confirm){
          wx.clearStorage({
            success: (res) => {
              wx.reLaunch({
                url: '/pages/login/index',
              })
            },
          })
        }
      },
    })
    
  }
})